<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta HTTP-EQUIV="pragma" CONTENT="no-cache">
    <meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
    <meta HTTP-EQUIV="expires" CONTENT="0">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>角色管理</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/font-awesome.css" rel="stylesheet">
    <link href="css/animate.css" rel="stylesheet">
    <link href="css/plugins/jsTree/style.min.css" rel="stylesheet">
    <link rel="stylesheet" href="css/plugins/webuploader/webuploader.css">
    <link href="css/style.css" rel="stylesheet">
    <style>
        #nestable,
        #jstree2 {
            width: 30%;
            float: left;
            height: 100%;
            border-right: 1px solid #eee;
            padding: 10px;
            background: #fff;
        }

        .pull-right i {
            margin: 0 5px;
        }

        #jstree1 {
            padding: 10px;
        }

        .box-right {
            width: 70%;
            float: right;
            padding: 10px;
            height: 100%;
            background: #fff;
        }

        #uploadImg {
            position: absolute;
            top: 50%;
            left: 48%;
            z-index: 999;
            visibility: visible;
        }

        #bg {
            background: #eee;
            position: absolute;
            z-index: 998;
            display: none;
            width: 100%;
            height: 100%;
            filter: alpha(opacity=50);
            -moz-opacity: 0.5;
            -khtml-opacity: 0.5;
            opacity: 0.5;
        }
    </style>
</head>

<body class="gray-bg animated fadeInRight">
    <div id="bg"></div>
    <div id="fileList" class="uploader-list" style="display:none;"></div>
    <div class="row wrapper border-bottom white-bg page-heading">
        <div class="col-sm-4">
            <h2>角色管理</h2>
            <ol class="breadcrumb">
                <li>
                    <a class="J_menuItem">首页</a>
                </li>
                <li>
                    <a>系统管理</a>
                </li>
                <li>
                    <strong>角色管理</strong>
                </li>
            </ol>
        </div>
    </div>
    <div class="wrapper wrapper-content" style="height:100%" id="wrapper-box">
        <div id="jstree2">
            <ul>
                <!-- <li class="jstree-open">组织
                    <ul>
                        <li>至特
                            <ul>
                                <li>技术部
                                    <ul>
                                        <li>JAVA</li>
                                        <li>前端</li>
                                        <li>IOS</li>
                                        <li>android</li>
                                    </ul>
                                </li>
                                <li>运营部
                                    <ul>
                                        <li>电商运营</li>
                                        <li>类目运营</li>
                                    </ul>
                                </li>
                                <li>市场部
                                    <ul>
                                        <li>BD</li>
                                        <li>广告</li>
                                        <li>公关</li>
                                    </ul>
                                </li>
                            </ul>
                        </li>
                        <li>苏南硕放
                            <ul>
                                <li>信息部</li>
                                <li>旅服部</li>
                                <li>经管部</li>
                            </ul>
                        </li>
                    </ul>
                </li>-->
            </ul>
        </div>

        <!-- <div class="dd dd-nodrag" id="nestable">
            <ol class="dd-list">
                <li class="dd-item" data-id="至特">
                    <div class="dd-handle"><span class="nodeText">至特</span>
                        <span class="pull-right"> 
                                        <i class="fa fa-edit"></i> 
                                        <i class="fa fa-plus"></i>
                                        <i class="fa fa-plus-square-o"></i>                                
                                        <i class="fa fa-trash-o"></i>
                                </span>
                    </div>
                    <ol class="dd-list">
                        <li class="dd-item" data-id="技术部">
                            <div class="dd-handle"><span class="nodeText">技术部</span><span class="pull-right"><i class="fa fa-edit"></i><i class="fa fa-plus"></i><i class="fa fa-plus-square-o"></i> <i class="fa fa-trash-o"></i></span></div>
                            <ol class="dd-list">
                                <li class="dd-item" data-id="JAVA">
                                    <div class="dd-handle"><span class="nodeText">JAVA</span><span class="pull-right"><i class="fa fa-edit"></i><i class="fa fa-plus"></i><i class="fa fa-plus-square-o"></i> <i class="fa fa-trash-o"></i></span></div>
                                </li>
                                <li class="dd-item" data-id="前端">
                                    <div class="dd-handle"><span class="nodeText">前端</span><span class="pull-right"><i class="fa fa-edit"></i><i class="fa fa-plus"></i><i class="fa fa-plus-square-o"></i> <i class="fa fa-trash-o"></i></span></div>
                                </li>
                                <li class="dd-item" data-id="IOS">
                                    <div class="dd-handle"><span class="nodeText">IOS</span><span class="pull-right"><i class="fa fa-edit"></i><i class="fa fa-plus"></i><i class="fa fa-plus-square-o"></i> <i class="fa fa-trash-o"></i></span></div>
                                </li>
                                <li class="dd-item" data-id="android">
                                    <div class="dd-handle"><span class="nodeText">android</span><span class="pull-right"><i class="fa fa-edit"></i><i class="fa fa-plus"></i><i class="fa fa-plus-square-o"></i> <i class="fa fa-trash-o"></i></span></div>
                                </li>
                            </ol>
                        </li>
                        <li class="dd-item" data-id="运营部">
                            <div class="dd-handle"><span class="nodeText">运营部</span>
                                <span class="pull-right"> 
                                                <i class="fa fa-edit"></i> 
                                                <i class="fa fa-plus"></i>
                                                <i class="fa fa-plus-square-o"></i>     
                                                <i class="fa fa-trash-o"></i>
                                        </span>
                            </div>
                            <ol class="dd-list">
                                <li class="dd-item" data-id="电商运营">
                                    <div class="dd-handle"><span class="nodeText">电商运营</span><span class="pull-right"><i class="fa fa-edit"></i><i class="fa fa-plus"></i><i class="fa fa-plus-square-o"></i> <i class="fa fa-trash-o"></i></span></div>
                                </li>
                                <li class="dd-item" data-id="类目运营">
                                    <div class="dd-handle"><span class="nodeText">类目运营</span><span class="pull-right"><i class="fa fa-edit"></i><i class="fa fa-plus"></i><i class="fa fa-plus-square-o"></i> <i class="fa fa-trash-o"></i></span></div>
                                </li>
                            </ol>
                        </li>
                        <li class="dd-item" data-id="市场部">
                            <div class="dd-handle"><span class="nodeText">市场部</span>
                                <span class="pull-right"> 
                                                <i class="fa fa-edit"></i> 
                                                <i class="fa fa-plus"></i>
                                                <i class="fa fa-plus-square-o"></i>     
                                                <i class="fa fa-trash-o"></i>
                                        </span>
                            </div>
                            <ol class="dd-list">
                                <li class="dd-item" data-id="BD">
                                    <div class="dd-handle"><span class="nodeText">BD</span><span class="pull-right"><i class="fa fa-edit"></i><i class="fa fa-plus"></i><i class="fa fa-plus-square-o"></i> <i class="fa fa-trash-o"></i></span></div>
                                </li>
                            </ol>
                        </li>
                    </ol>
                </li>
                <li class="dd-item" data-id="苏南硕放">
                    <div class="dd-handle"><span class="nodeText">苏南硕放</span>
                        <span class="pull-right"> 
                                        <i class="fa fa-edit"></i> 
                                        <i class="fa fa-plus"></i>
                                        <i class="fa fa-plus-square-o"></i>
                                        <i class="fa fa-trash-o"></i>
                                </span>
                    </div>
                    <ol class="dd-list">
                        <li class="dd-item" data-id="信息部">
                            <div class="dd-handle"><span class="nodeText">信息部</span>
                                <span class="pull-right"> 
                                                <i class="fa fa-edit"></i> 
                                                <i class="fa fa-plus"></i>
                                                <i class="fa fa-plus-square-o"></i>     
                                                <i class="fa fa-trash-o"></i>
                                        </span>
                            </div>
                        </li>
                        <li class="dd-item" data-id="旅服部">
                            <div class="dd-handle"><span class="nodeText">旅服部</span>
                                <span class="pull-right"> 
                                                <i class="fa fa-edit"></i> 
                                                <i class="fa fa-plus"></i>
                                                <i class="fa fa-plus-square-o"></i>     
                                                <i class="fa fa-trash-o"></i>
                                        </span>
                            </div>
                        </li>
                        <li class="dd-item" data-id="经管部">
                            <div class="dd-handle"><span class="nodeText">经管部</span>
                                <span class="pull-right">
                                    <i class="fa fa-edit"></i>
                                    <i class="fa fa-plus"></i>
                                    <i class="fa fa-plus-square-o"></i> 
                                    <i class="fa fa-trash-o"></i>
                                </span>
                            </div>
                        </li>
                    </ol>
                </li>
            </ol>
        </div> -->
        <div class="box-right" style="display:none;">
                <div class="col-sm-12" id="box-right-1">
            <button class="btn btn-success btn-sm" title="保存" style="margin:10px;" id="save">保存</button>
           </div>
            <div class="row" id="box-right-2">
                <div class="col-sm-10">
                    <div class="form-group">
                        <label class="col-sm-2 control-label" style="padding-top:10px;">角色名称：</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" name="password" id="role_name">
                        </div>
                    </div>
                </div>
                <div class="col-sm-10" style="margin-top:15px;">
                    <div class="form-group">
                        <label class="col-sm-2 control-label" style="padding-top:10px;">角色描述：</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" name="password" id="description">
                        </div>
                    </div>
                </div>

                <div class="col-sm-10" style="margin-top:20px;">
                    <div class="form-group">
                        <label class="col-sm-2 control-label" style="padding-top:10px;">包含资源：</label>
                        <div class="col-sm-7">
                            <!-- <input type="text" class="form-control" name="password" id="departmentName"> -->
                            <div id="jstree1">
                                <!-- <ul>
                                    <li class="jstree-open">H+主题
                                        <ul>
                                            <li>css
                                                <ul>
                                                    <li>animate.css</li>
                                                    <li>bootstrap.css</li>
                                                    <li>style.css</li>
                                                </ul>
                                            </li>
                                            <li>email-templates
                                                <ul>
                                                    <li>action.html</li>
                                                    <li>alert.html</li>
                                                    <li>billing.html</li>
                                                </ul>
                                            </li>
                                            <li>fonts
                                                <ul>
                                                    <li>glyphicons-halflings-regular.eot</li>
                                                    <li>glyphicons-halflings-regular.svg</li>
                                                    <li>glyphicons-halflings-regular.ttf</li>
                                                    <li>glyphicons-halflings-regular.woff</li>
                                                </ul>
                                            </li>
                                            <li>img
                                                <ul>
                                                    <li>profile_small.jpg</li>
                                                    <li>angular_logo.png</li>
                                                    <li>html_logo.png</li>
                                                    <li>mvc_logo.png</li>
                                                </ul>
                                            </li>
                                            <li>js
                                                <ul>
                                                    <li>hplus.js</li>
                                                    <li>bootstrap.js</li>
                                                    <li>jquery-2.1.1.js</li>
                                                    <li>jquery-ui.custom.min.js</li>
                                                    <li>jquery-ui-1.10.4.min.js</li>
                                                </ul>
                                            </li>
                                            <li>affix.html</li>
                                            <li>dashboard.html</li>
                                            <li>buttons.html</li>
                                            <li>calendar.html</li>
                                            <li>contacts.html</li>
                                            <li>css_animation.html</li>
                                            <li>flot_chart.html</li>
                                            <li>google_maps.html</li>
                                            <li>icons.html</li>
                                            <li>inboice.html</li>
                                            <li>login.html</li>
                                            <li>mailbox.html</li>
                                            <li>profile.html</li>
                                            <li>register.html</li>
                                            <li>timeline.html</li>
                                            <li>video.html</li>
                                            <li>widgets.html</li>
                                        </ul>
                                    </li>
                                </ul> -->
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- 全局js -->
    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <!-- 自定义js -->
    <script src="js/content.js"></script>
    <script src="js/plugins/layer/layer.js"></script>
    <script src="js/plugins/jsTree/jstree.min.js"></script>
    <script src="js/plugins/webuploader/webuploader.min.js"></script>
    <script src="js/work/common.js"></script>
    <script>
        var newId = "";
        var newPosition = "";
        var isCopy = 0;
        var role_id = '';
        $(document).ready(function () {
            initData()

            // $tree = $('#jstree2').jstree({
            //     'core': {
            //         "multiple": false, // 单选
            //         "check_callback": function (operation, node, parent, position, more) {
            //             if (operation == "delete_node") {
            //                 if (confirm("确认删除?")) {
            //                     layer.msg("删除id:" + node.id + "成功");
            //                     return true
            //                 } else {
            //                     return false
            //                 }
            //             }
            //             return true; // allow everything else
            //         },
            //         'data': {
            //             "url": "js/demo/jsTree.json?lazy"
            //         }
            //     },
            //     'plugins': ['dnd', 'contextmenu', 'massload', 'state', 'unique', 'wholerow'],
            //     contextmenu: {
            //         items: context_menu
            //     }
            // });




        })

        function context_menu(node) {
            var tree = $('#jstree2').jstree(true);
            var disabled = false;
            console.log(node)
            if (node.parents.length > 1) {
                disabled = false
            } else {
                disabled = true
            }
            var items = {
                // "icon": {
                //     "separator_before": false,
                //     "separator_after": true,
                //     "_disabled": false,
                //     "label": "图标",
                //     "action": function (data) {
                //         var inst = $.jstree.reference(data.reference),
                //         obj = inst.get_node(data.reference);                            
                //     //$("#uploadImg").css("visibility", "visible");
                //     $("#fileList").after("<div id='uploadImg'>选择图片</div>");
                //     $("#bg").show();
                //     $list = $('#fileList');
                //     // 初始化Web Uploader
                //     var uploader = WebUploader.create({

                //         // 选完文件后，是否自动上传。
                //         auto: true,

                //         // 文件接收服务端。
                //         server:upload_url_prefix +
                //             'upload/uploadJitesCmsImageMulit',

                //         // 选择文件的按钮。可选。
                //         // 内部根据当前运行是创建，可能是input元素，也可能是flash.
                //         pick: {
                //             id: '#uploadImg',
                //             multiple: false
                //         },

                //         // 只允许选择图片文件。
                //         accept: {
                //             title: 'Images',
                //             extensions: 'gif,jpg,jpeg,bmp,png',
                //             mimeTypes: 'image/gif,image/jpeg,image/png,image/jpg,image/bmp'
                //         }
                //     });

                //     //文件传输成功后的返回值
                //     uploader.on("uploadAccept", function (object, ret) {
                //         console.log(object, "object ");
                //         console.log(ret);
                //         inst.set_icon(obj, picPath + ret.avatar);
                //         $("#uploadImg").remove();
                //         $("#bg").hide();
                //         //set_icon(picPath+ret.avatar)
                //         //inst.set_icon(obj,picPath+ret.avatar)
                //         //imgUrl=ret.avatar
                //         //$("#avatar").attr("src",picPath+ret.avatar).attr("data-url",ret.avatar);
                //     });

                //     // 文件上传过程中创建进度条实时显示。
                //     uploader.on('uploadProgress', function (file, percentage) {
                //         var $li = $('#' + file.id),
                //             $percent = $li.find('.progress span');

                //         // 避免重复创建
                //         if (!$percent.length) {
                //             $percent = $('<p class="progress"><span></span></p>')
                //                 .appendTo($li)
                //                 .find('span');
                //         }

                //         $percent.css('width', percentage * 100 + '%');
                //     });

                //     // 文件上传成功，给item添加成功class, 用样式标记上传成功。
                //     uploader.on('uploadSuccess', function (file) {
                //         $('#' + file.id).addClass('upload-state-done');
                //     });

                //     // 文件上传失败，显示上传出错。
                //     uploader.on('uploadError', function (file) {
                //         var $li = $('#' + file.id),
                //             $error = $li.find('div.error');

                //         // 避免重复创建
                //         if (!$error.length) {
                //             $error = $('<div class="error"></div>').appendTo($li);
                //         }

                //         $error.text('上传失败');
                //     });

                //     // 完成上传完了，成功或者失败，先删除进度条。
                //     uploader.on('uploadComplete', function (file) {
                //         $('#' + file.id).find('.progress').remove();
                //     });

                //     //inst.set_icon(obj,"fa fa-envelope-o")

                //     }
                // },
                "create": {
                    "separator_before": false,
                    "separator_after": true,
                    "_disabled": false,
                    "label": "新建",
                    "action": function (data) {
                        var inst = $.jstree.reference(data.reference),
                            obj = inst.get_node(data.reference);
                        inst.create_node(obj, {

                            },
                            "last",
                            function (new_node) {
                                setTimeout(function () {
                                        inst.edit(new_node)
                                    },
                                    0)
                            })
                    }
                },
                // "rename": {
                //     "separator_before": false,
                //     "separator_after": false,
                //     "_disabled": disabled,
                //     "label": "重命名",
                //     "action": function (data) {
                //         var inst = $.jstree.reference(data.reference),
                //             obj = inst.get_node(data.reference);
                //         inst.edit(obj)
                //     }
                // },
                "remove": {
                    "separator_before": false,
                    "icon": false,
                    "separator_after": false,
                    "_disabled": disabled,
                    "label": "删除",
                    "action": function (data) {
                        var inst = $.jstree.reference(data.reference),
                            obj = inst.get_node(data.reference);
                        if (inst.is_selected(obj)) {
                            inst.delete_node(inst.get_selected())
                        } else {
                            inst.delete_node(obj)
                        }
                    }
                },
                "ccp": {
                    "separator_before": true,
                    "icon": false,
                    "separator_after": false,
                    "label": "操作",
                    "action": false,
                    "_disabled": disabled,
                    "submenu": {
                        "cut": {
                            "separator_before": false,
                            "separator_after": false,
                            "label": "剪贴",
                            "action": function (data) {
                                var inst = $.jstree.reference(data.reference),
                                    obj = inst.get_node(data.reference);
                                if (inst.is_selected(obj)) {
                                    inst.cut(inst.get_top_selected())
                                } else {
                                    inst.cut(obj)
                                }
                            }
                        },
                        "copy": {
                            "separator_before": false,
                            "icon": false,
                            "separator_after": false,
                            "label": "复制",
                            "_disabled": true,
                            "action": function (data) {
                                var inst = $.jstree.reference(data.reference),
                                    obj = inst.get_node(data.reference);
                                if (inst.is_selected(obj)) {
                                    inst.copy(inst.get_top_selected())
                                } else {
                                    inst.copy(obj)
                                }
                            }
                        },
                        "paste": {
                            "separator_before": false,
                            "icon": false,
                            "_disabled": function (data) {
                                return !$.jstree.reference(data.reference).can_paste()
                            },
                            "separator_after": false,
                            "label": "粘贴",
                            "action": function (data) {
                                var inst = $.jstree.reference(data.reference),
                                    obj = inst.get_node(data.reference);
                                inst.paste(obj)
                            }
                        }
                    }
                }
            }

            return items;
        }

        function initData() {
            var data = firstJson;
            console.log(data);
            if (data.success) {
                $('#jstree2').jstree("destroy");
                $tree = $('#jstree2').jstree({
                    'core': {
                        "check_callback": function (operation, node, parent,
                            position, more) {
                            console.log(operation)
                            if (operation == "delete_node") {
                                if (confirm("确认删除?")) {
                                    ajax({
                                        url: "roleMain/deleteRole",
                                        data: {
                                            role_id: node.id
                                        },
                                        successx: function (data) {
                                            console.log(data);
                                            if (data.success) {
                                                layer.msg(data.message)
                                                initData();
                                            } else {
                                                layer.msg(data.message);
                                                initData()
                                            }
                                        }
                                    })
                                    return true
                                } else {
                                    return false
                                }
                            } else if (operation == "move_node") {
                                if (parent.id == "#") {
                                    return false
                                } else {
                                    return true
                                }
                            }
                            return true; // allow everything else
                        },
                        'data': data.data
                    },
                    'plugins': ['dnd', 'contextmenu', 'massload', 'state',
                        'wholerow', 'type'
                    ],
                    contextmenu: {
                        items: context_menu
                    }
                });

                $('#jstree2').on('move_node.jstree', function (e, data) {
                    isCopy = 0;
                    //移动
                    console.log("id:" + data.node.id);
                    console.log("父节点:" + data.parent);
                    console.log("位置:" + data.position);
                    console.log("cut:" + isCopy);
                    //return;
                    isCopy = 0;
                    ajax({
                        url: "roleMain/updateRole",
                        data: {
                            parent_id: data.node.parent,
                            role_id: data.node.id
                        },
                        successx: function (data) {
                            console.log(data);
                            layer.msg(data.message)
                            initData()
                        }
                    })
                });

                $('#jstree2').on('select_node.jstree', function (e, data) {
                    //select_node
                    console.log("id:" + data.node.id);
                    role_id = data.node.id;
                    if (data.node.parents.length > 1) {
                        $("#departmentName").val(data.node.text);
                        var data = twoJson;
                        console.log(data);
                        if (data.success) {
                            console.log(data.data)
                            $('#jstree1').jstree("destroy");
                            $('#jstree1').jstree({
                                'core': {
                                    'check_callback': true,
                                    'data': data.data.queryByOrganization
                                },
                                "checkbox": {
                                    "keep_selected_style": false
                                },
                                'plugins': ['checkbox'],
                                "checkbox": {
                                    "three_state": false
                                }
                            });
                            setTimeout(function(){
                            $('#jstree1').on('changed.jstree', function (e, data) {
                                if(data.node.state.selected){
                                    if(data.node.children_d.length>0){
                                        for(var i=0;i<data.node.children_d.length;i++){
                                            $(e.target).jstree('check_node',data.node.children_d[i]);
                                        }
                                    }
                                }
                            })
                        },50)

                            $('.box-right').show();
                            $("#role_name").val(data.data.tblUpmsRoleInfoDat.role_name);
                            $("#description").val(data.data.tblUpmsRoleInfoDat.description);
                            setTimeout(function() {
                                var rightHeight=$("#box-right-1").height()+$("#box-right-2").height();
                                $("#wrapper-box").height(rightHeight)
                            },100);
                        } else {
                            layer.msg(data.message)
                        }
                    } else {
                        $(".box-right").hide()
                    }

                });
                $('#jstree2').on('cut.jstree', function (e, data) {
                    isCopy = 0
                    //cut
                });
                $('#jstree2').on('copy.jstree', function (e, data) {
                    isCopy = 1
                    //copy
                });
                $('#jstree2').on('paste.jstree', function (e, data) {
                    //paste
                    console.log(data)
                    if (isCopy == 0) {
                        //cut
                        console.log("id:" + data.node[0].id);
                        console.log("父节点:" + data.parent);
                        console.log("位置:" + 0);
                        console.log("cut:" + isCopy);
                        ajax({
                            url: "organizationMain/updateOrganization",
                            data: {
                                parent_id: data.node.parent,
                                role_id: data.node[0].id
                            },
                            successx: function (data) {
                                console.log(data);
                                layer.msg(data.message)
                                initData()
                            }
                        })
                    } else {
                        //copy
                        console.log("id:" + data.node.id);
                        console.log("父节点:" + data.parent);
                        console.log("位置:" + 0);
                        console.log("cut:" + isCopy);
                    }
                    isCopy = 0
                });
                $('#jstree2').on('create_node.jstree', function (e, data) {
                    //新建
                    newId = data.node.id;
                    newPosition = data.position
                });
                $('#jstree2').on('rename_node.jstree', function (e, data) {
                    if (data.node.id == newId) {
                        console.log("新建")
                        console.log("父节点:" + data.node.parent);
                        console.log("位置:" + newPosition);
                        console.log("newtext:" + data.node.text);
                        ajax({
                            url: "roleMain/addRole",
                            data: {
                                parent_id: data.node.parent,
                                role_name: data.node.text
                            },
                            successx: function (data) {
                                console.log(data);
                                layer.msg(data.message)
                                initData()
                            }
                        })

                    } else {
                        console.log("rename");
                        console.log("id:" + data.node.id);
                        console.log("text:" + data.node.text);
                        // ajax({
                        //     url: "organizationMain/updateOrganization",
                        //     data: {
                        //         role_id: data.node.id,
                        //         organization_name: data.node.text
                        //     },
                        //     successx: function (data) {
                        //         console.log(data);
                        //         if (data.success) {
                        //             layer.msg(data.message)
                        //             initData()
                        //         } else {
                        //             layer.msg(data.message)
                        //         }
                        //     }
                        // })

                    }
                    newId = "";
                    newPosition = "";

                });
            } else {
                layer.msg(data.message)
            }
        }
        $("#bg").click(function () {
            $("#bg").hide();
            $("#uploadImg").remove();
        })
        var flag = 0;
        $("#save").click(function () {
            var role_name=$("#role_name").val();
            var description=$("#description").val();
            if(role_name==""){
                layer.msg("角色名称为空")
                return; 
            }
            if (flag == 1) return;
            flag = 1;
            var idList = ($('#jstree1').jstree('get_selected')).toString();
            ajax({
                url: "roleResourceMain/addAndDeleteRoleResource",
                data: {
                    role_id: role_id,
                    ids: idList,
                    role_name,role_name,
                    description:description
                },
                successx: function (data) {
                    console.log(data);
                    flag = 0;
                    layer.msg(data.message)
                    initData() 
                }
            })
        })



        var firstJson = {
            "success": true,
            "code": 200,
            "message": "成功",
            "data": [
                {
                    "id": 1,
                    "text": "administrator",
                    "isPower": "\u0000",
                    "state": null,
                    "children": [
                        {
                            "id": 10,
                            "text": "jites",
                            "isPower": "\u0000",
                            "state": null,
                            "children": [
                                {
                                    "id": 11,
                                    "text": "jites-manager",
                                    "isPower": "\u0000",
                                    "state": null,
                                    "children": null,
                                    "role_id": 11,
                                    "parent_id": 10,
                                    "parent_path": "0/1/10/",
                                    "role_name": "jites-manager",
                                    "priority": 0,
                                    "is_delete": 0,
                                    "description": "",
                                    "create_time": 1512781938000,
                                    "update_time": 1512781938000,
                                    "update_people": null
                                }
                            ],
                            "role_id": 10,
                            "parent_id": 1,
                            "parent_path": "0/1/",
                            "role_name": "jites",
                            "priority": 0,
                            "is_delete": 0,
                            "description": "",
                            "create_time": 1512781855000,
                            "update_time": 1512781855000,
                            "update_people": null
                        },
                        {
                            "id": 12,
                            "text": "wux",
                            "isPower": "\u0000",
                            "state": null,
                            "children": [
                                {
                                    "id": 13,
                                    "text": "wux-manager",
                                    "isPower": "\u0000",
                                    "state": null,
                                    "children": null,
                                    "role_id": 13,
                                    "parent_id": 12,
                                    "parent_path": "0/1/12/",
                                    "role_name": "wux-manager",
                                    "priority": 0,
                                    "is_delete": 0,
                                    "description": "",
                                    "create_time": 1512781965000,
                                    "update_time": 1512781965000,
                                    "update_people": null
                                },
                                {
                                    "id": 15,
                                    "text": "wux-user",
                                    "isPower": "\u0000",
                                    "state": null,
                                    "children": null,
                                    "role_id": 15,
                                    "parent_id": 12,
                                    "parent_path": "0/1/12/",
                                    "role_name": "wux-user",
                                    "priority": 0,
                                    "is_delete": 0,
                                    "description": "",
                                    "create_time": 1520956571000,
                                    "update_time": 1520956571000,
                                    "update_people": null
                                }
                            ],
                            "role_id": 12,
                            "parent_id": 1,
                            "parent_path": "0/1/",
                            "role_name": "wux",
                            "priority": 0,
                            "is_delete": 0,
                            "description": "",
                            "create_time": 1512781951000,
                            "update_time": 1512781951000,
                            "update_people": null
                        }
                    ],
                    "role_id": 1,
                    "parent_id": 0,
                    "parent_path": "0/",
                    "role_name": "administrator",
                    "priority": 0,
                    "is_delete": 0,
                    "description": "",
                    "create_time": 1506637785000,
                    "update_time": 1506637785000,
                    "update_people": null
                }
            ],
            "totalCount": 0
        };

        var twoJson = {
            "success": true,
            "code": 200,
            "message": "成功",
            "data": {
                "tblUpmsRoleInfoDat": {
                    "role_id": 15,
                    "parent_id": 12,
                    "parent_path": "0/1/12/",
                    "role_name": "wux-user",
                    "priority": 0,
                    "is_delete": 0,
                    "description": "",
                    "create_time": 1520956571000,
                    "update_time": 1520956571000,
                    "update_people": "",
                    "id": 15
                },
                "queryByOrganization": [
                    {
                        "id": 1,
                        "text": "资源",
                        "resource_id": 1,
                        "parent_id": 0,
                        "parent_path": "0/",
                        "permissions_code": "",
                        "resource_name": "资源",
                        "resource_type": "menu",
                        "resource_request_uri": "",
                        "resource_image_uri": "",
                        "priority": 0,
                        "is_delete": 0,
                        "description": "",
                        "create_time": 1506637769000,
                        "update_time": 1506637769000,
                        "isPower": "0",
                        "children": [
                            {
                                "id": 139,
                                "text": "机场概况",
                                "resource_id": 139,
                                "parent_id": 1,
                                "parent_path": "0/1/",
                                "permissions_code": "",
                                "resource_name": "机场概况",
                                "resource_type": "menu",
                                "resource_request_uri": "basic0.html",
                                "resource_image_uri": "fa-area-chart",
                                "priority": 0,
                                "is_delete": 0,
                                "description": "",
                                "create_time": 1527280906000,
                                "update_time": 1530546478000,
                                "isPower": "0",
                                "children": null,
                                "state": null
                            },
                            {
                                "id": 116,
                                "text": "平台概况",
                                "resource_id": 116,
                                "parent_id": 1,
                                "parent_path": "0/1/",
                                "permissions_code": "basic",
                                "resource_name": "平台概况",
                                "resource_type": "menu",
                                "resource_request_uri": "basic.html",
                                "resource_image_uri": "fa-bar-chart",
                                "priority": 0,
                                "is_delete": 0,
                                "description": "basic",
                                "create_time": 1526586603000,
                                "update_time": 1527004801000,
                                "isPower": "0",
                                "children": null,
                                "state": null
                            },
                            {
                                "id": 2,
                                "text": "机场管理",
                                "resource_id": 2,
                                "parent_id": 1,
                                "parent_path": "0/1/",
                                "permissions_code": "",
                                "resource_name": "机场管理",
                                "resource_type": "menu",
                                "resource_request_uri": "",
                                "resource_image_uri": "fa-plane",
                                "priority": 1,
                                "is_delete": 0,
                                "description": "",
                                "create_time": 1506637769000,
                                "update_time": 1527005041000,
                                "isPower": "0",
                                "children": [
                                    {
                                        "id": 40,
                                        "text": "服务设置",
                                        "resource_id": 40,
                                        "parent_id": 2,
                                        "parent_path": "0/1/2/",
                                        "permissions_code": "service",
                                        "resource_name": "服务设置",
                                        "resource_type": "menu",
                                        "resource_request_uri": "service.html",
                                        "resource_image_uri": "fa-cogs",
                                        "priority": 0,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1506637769000,
                                        "update_time": 1527015075000,
                                        "isPower": "0",
                                        "children": null,
                                        "state": null
                                    },
                                    {
                                        "id": 68,
                                        "text": "商户列表",
                                        "resource_id": 68,
                                        "parent_id": 2,
                                        "parent_path": "0/1/2/",
                                        "permissions_code": "",
                                        "resource_name": "商户列表",
                                        "resource_type": "menu",
                                        "resource_request_uri": "shop.html",
                                        "resource_image_uri": "fa-tags",
                                        "priority": 1,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1512764941000,
                                        "update_time": 1527015134000,
                                        "isPower": "0",
                                        "children": null,
                                        "state": null
                                    },
                                    {
                                        "id": 41,
                                        "text": "航班提醒",
                                        "resource_id": 41,
                                        "parent_id": 2,
                                        "parent_path": "0/1/2/",
                                        "permissions_code": "flight",
                                        "resource_name": "航班提醒",
                                        "resource_type": "menu",
                                        "resource_request_uri": "flight.html",
                                        "resource_image_uri": "fa-bell-o",
                                        "priority": 2,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1506637769000,
                                        "update_time": 1527015163000,
                                        "isPower": "0",
                                        "children": null,
                                        "state": null
                                    },
                                    {
                                        "id": 43,
                                        "text": "失物管理",
                                        "resource_id": 43,
                                        "parent_id": 2,
                                        "parent_path": "0/1/2/",
                                        "permissions_code": "lost",
                                        "resource_name": "失物管理",
                                        "resource_type": "menu",
                                        "resource_request_uri": "lost.html",
                                        "resource_image_uri": "fa-hand-paper-o",
                                        "priority": 3,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1506637769000,
                                        "update_time": 1527015170000,
                                        "isPower": "0",
                                        "children": null,
                                        "state": null
                                    },
                                    {
                                        "id": 42,
                                        "text": "无人陪伴",
                                        "resource_id": 42,
                                        "parent_id": 2,
                                        "parent_path": "0/1/2/",
                                        "permissions_code": "child",
                                        "resource_name": "无人陪伴",
                                        "resource_type": "menu",
                                        "resource_request_uri": "child.html",
                                        "resource_image_uri": "fa-wheelchair",
                                        "priority": 4,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1506637769000,
                                        "update_time": 1527015199000,
                                        "isPower": "0",
                                        "children": null,
                                        "state": null
                                    },
                                    {
                                        "id": 44,
                                        "text": "贵宾厅",
                                        "resource_id": 44,
                                        "parent_id": 2,
                                        "parent_path": "0/1/2/",
                                        "permissions_code": "vipRoom",
                                        "resource_name": "贵宾厅",
                                        "resource_type": "menu",
                                        "resource_request_uri": "vipRoom.html",
                                        "resource_image_uri": "fa-vimeo",
                                        "priority": 5,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1506637769000,
                                        "update_time": 1527015205000,
                                        "isPower": "0",
                                        "children": null,
                                        "state": null
                                    },
                                    {
                                        "id": 78,
                                        "text": "商品推荐",
                                        "resource_id": 78,
                                        "parent_id": 2,
                                        "parent_path": "0/1/2/",
                                        "permissions_code": "",
                                        "resource_name": "商品推荐",
                                        "resource_type": "menu",
                                        "resource_request_uri": "RecommendGoods.html",
                                        "resource_image_uri": "fa-thumbs-up",
                                        "priority": 6,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1513035395000,
                                        "update_time": 1527015212000,
                                        "isPower": "0",
                                        "children": null,
                                        "state": null
                                    },
                                    {
                                        "id": 58,
                                        "text": "头条管理",
                                        "resource_id": 58,
                                        "parent_id": 2,
                                        "parent_path": "0/1/2/",
                                        "permissions_code": "cfgCappHome",
                                        "resource_name": "头条管理",
                                        "resource_type": "menu",
                                        "resource_request_uri": "news.html",
                                        "resource_image_uri": "fa-newspaper-o",
                                        "priority": 7,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1512171418000,
                                        "update_time": 1527015218000,
                                        "isPower": "0",
                                        "children": null,
                                        "state": null
                                    }
                                ],
                                "state": null
                            },
                            {
                                "id": 4,
                                "text": "店铺管理",
                                "resource_id": 4,
                                "parent_id": 1,
                                "parent_path": "0/1/",
                                "permissions_code": "",
                                "resource_name": "店铺管理",
                                "resource_type": "menu",
                                "resource_request_uri": "",
                                "resource_image_uri": "fa-shopping-cart",
                                "priority": 2,
                                "is_delete": 0,
                                "description": "",
                                "create_time": 1506637769000,
                                "update_time": 1527019525000,
                                "isPower": "0",
                                "children": [
                                    {
                                        "id": 123,
                                        "text": "商品管理",
                                        "resource_id": 123,
                                        "parent_id": 4,
                                        "parent_path": "0/1/4/",
                                        "permissions_code": "",
                                        "resource_name": "商品管理",
                                        "resource_type": "menu",
                                        "resource_request_uri": "",
                                        "resource_image_uri": "",
                                        "priority": 0,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1527017630000,
                                        "update_time": 1527030834000,
                                        "isPower": "0",
                                        "children": [
                                            {
                                                "id": 124,
                                                "text": "商品管理",
                                                "resource_id": 124,
                                                "parent_id": 123,
                                                "parent_path": "0/1/4/123/",
                                                "permissions_code": "",
                                                "resource_name": "商品管理",
                                                "resource_type": "menu",
                                                "resource_request_uri": "goods.html",
                                                "resource_image_uri": "fa-cubes",
                                                "priority": 0,
                                                "is_delete": 0,
                                                "description": "",
                                                "create_time": 1527017962000,
                                                "update_time": 1527020187000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            },
                                            {
                                                "id": 126,
                                                "text": "供应商管理",
                                                "resource_id": 126,
                                                "parent_id": 123,
                                                "parent_path": "0/1/4/123/",
                                                "permissions_code": "goodsSupplier",
                                                "resource_name": "供应商管理",
                                                "resource_type": "menu",
                                                "resource_request_uri": "goodsSupplier.html",
                                                "resource_image_uri": "fa-support ",
                                                "priority": 2,
                                                "is_delete": 0,
                                                "description": "",
                                                "create_time": 1527018088000,
                                                "update_time": 1527020195000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            }
                                        ],
                                        "state": null
                                    },
                                    {
                                        "id": 127,
                                        "text": "订单管理",
                                        "resource_id": 127,
                                        "parent_id": 4,
                                        "parent_path": "0/1/4/",
                                        "permissions_code": "",
                                        "resource_name": "订单管理",
                                        "resource_type": "menu",
                                        "resource_request_uri": "",
                                        "resource_image_uri": "",
                                        "priority": 1,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1527018274000,
                                        "update_time": 1527018283000,
                                        "isPower": "0",
                                        "children": [
                                            {
                                                "id": 128,
                                                "text": "所有订单",
                                                "resource_id": 128,
                                                "parent_id": 127,
                                                "parent_path": "0/1/4/127/",
                                                "permissions_code": "",
                                                "resource_name": "所有订单",
                                                "resource_type": "menu",
                                                "resource_request_uri": "orderNew.html",
                                                "resource_image_uri": "fa-bars",
                                                "priority": 0,
                                                "is_delete": 0,
                                                "description": "",
                                                "create_time": 1527018298000,
                                                "update_time": 1527018388000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            },
                                            {
                                                "id": 129,
                                                "text": "退款订单",
                                                "resource_id": 129,
                                                "parent_id": 127,
                                                "parent_path": "0/1/4/127/",
                                                "permissions_code": "",
                                                "resource_name": "退款订单",
                                                "resource_type": "menu",
                                                "resource_request_uri": "orderRefund1.html",
                                                "resource_image_uri": "",
                                                "priority": 1,
                                                "is_delete": 0,
                                                "description": "",
                                                "create_time": 1527018429000,
                                                "update_time": 1527018446000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            }
                                        ],
                                        "state": null
                                    },
                                    {
                                        "id": 130,
                                        "text": "店铺营销",
                                        "resource_id": 130,
                                        "parent_id": 4,
                                        "parent_path": "0/1/4/",
                                        "permissions_code": "",
                                        "resource_name": "店铺营销",
                                        "resource_type": "menu",
                                        "resource_request_uri": "",
                                        "resource_image_uri": "",
                                        "priority": 2,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1527018564000,
                                        "update_time": 1527018595000,
                                        "isPower": "0",
                                        "children": [
                                            {
                                                "id": 86,
                                                "text": "店铺专题",
                                                "resource_id": 86,
                                                "parent_id": 130,
                                                "parent_path": "0/1/4/130/",
                                                "permissions_code": "shopSpecial",
                                                "resource_name": "店铺专题",
                                                "resource_type": "menu",
                                                "resource_request_uri": "shopSpecial.html",
                                                "resource_image_uri": "fa-navicon ",
                                                "priority": 0,
                                                "is_delete": 0,
                                                "description": "",
                                                "create_time": 1513742506000,
                                                "update_time": 1527023227000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            },
                                            {
                                                "id": 83,
                                                "text": "促销商品",
                                                "resource_id": 83,
                                                "parent_id": 130,
                                                "parent_path": "0/1/4/130/",
                                                "permissions_code": "shopPromotion",
                                                "resource_name": "促销商品",
                                                "resource_type": "menu",
                                                "resource_request_uri": "shopPromotion.html",
                                                "resource_image_uri": "fa-tag",
                                                "priority": 1,
                                                "is_delete": 0,
                                                "description": "",
                                                "create_time": 1513741996000,
                                                "update_time": 1527023246000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            },
                                            {
                                                "id": 82,
                                                "text": "店铺上新",
                                                "resource_id": 82,
                                                "parent_id": 130,
                                                "parent_path": "0/1/4/130/",
                                                "permissions_code": "shopNewGoods",
                                                "resource_name": "店铺上新",
                                                "resource_type": "menu",
                                                "resource_request_uri": "shopNewGoods.html",
                                                "resource_image_uri": "fa-tag",
                                                "priority": 2,
                                                "is_delete": 0,
                                                "description": "",
                                                "create_time": 1513741958000,
                                                "update_time": 1527023267000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            },
                                            {
                                                "id": 69,
                                                "text": "优惠券",
                                                "resource_id": 69,
                                                "parent_id": 130,
                                                "parent_path": "0/1/4/130/",
                                                "permissions_code": "",
                                                "resource_name": "优惠券",
                                                "resource_type": "menu",
                                                "resource_request_uri": "coupon.html",
                                                "resource_image_uri": "fa-ticket",
                                                "priority": 3,
                                                "is_delete": 0,
                                                "description": "",
                                                "create_time": 1512765069000,
                                                "update_time": 1527023595000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            }
                                        ],
                                        "state": null
                                    },
                                    {
                                        "id": 133,
                                        "text": "店铺装修",
                                        "resource_id": 133,
                                        "parent_id": 4,
                                        "parent_path": "0/1/4/",
                                        "permissions_code": "",
                                        "resource_name": "店铺装修",
                                        "resource_type": "menu",
                                        "resource_request_uri": "",
                                        "resource_image_uri": "",
                                        "priority": 3,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1527018922000,
                                        "update_time": 1527018947000,
                                        "isPower": "0",
                                        "children": [
                                            {
                                                "id": 81,
                                                "text": "店铺Banner",
                                                "resource_id": 81,
                                                "parent_id": 133,
                                                "parent_path": "0/1/4/133/",
                                                "permissions_code": "shopBanner",
                                                "resource_name": "店铺Banner",
                                                "resource_type": "menu",
                                                "resource_request_uri": "shopBanner.html",
                                                "resource_image_uri": "fa-image",
                                                "priority": 0,
                                                "is_delete": 0,
                                                "description": "",
                                                "create_time": 1513741852000,
                                                "update_time": 1527023517000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            },
                                            {
                                                "id": 80,
                                                "text": "品类设置",
                                                "resource_id": 80,
                                                "parent_id": 133,
                                                "parent_path": "0/1/4/133/",
                                                "permissions_code": "shopCategory",
                                                "resource_name": "品类设置",
                                                "resource_type": "menu",
                                                "resource_request_uri": "shopCategory.html",
                                                "resource_image_uri": "fa-navicon ",
                                                "priority": 1,
                                                "is_delete": 0,
                                                "description": "",
                                                "create_time": 1513127168000,
                                                "update_time": 1527023538000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            },
                                            {
                                                "id": 70,
                                                "text": "品牌设置",
                                                "resource_id": 70,
                                                "parent_id": 133,
                                                "parent_path": "0/1/4/133/",
                                                "permissions_code": "",
                                                "resource_name": "品牌设置",
                                                "resource_type": "menu",
                                                "resource_request_uri": "shopBrand.html",
                                                "resource_image_uri": "fa-tag",
                                                "priority": 2,
                                                "is_delete": 0,
                                                "description": "",
                                                "create_time": 1512765137000,
                                                "update_time": 1527023546000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            }
                                        ],
                                        "state": null
                                    }
                                ],
                                "state": null
                            },
                            {
                                "id": 56,
                                "text": "运营管理",
                                "resource_id": 56,
                                "parent_id": 1,
                                "parent_path": "0/1/",
                                "permissions_code": "",
                                "resource_name": "运营管理",
                                "resource_type": "menu",
                                "resource_request_uri": "",
                                "resource_image_uri": "fa-users",
                                "priority": 1000,
                                "is_delete": 0,
                                "description": "",
                                "create_time": 1512171372000,
                                "update_time": 1525469460000,
                                "isPower": "0",
                                "children": [
                                    {
                                        "id": 119,
                                        "text": "服务类型",
                                        "resource_id": 119,
                                        "parent_id": 56,
                                        "parent_path": "0/1/56/",
                                        "permissions_code": "serviceList",
                                        "resource_name": "服务类型",
                                        "resource_type": "menu",
                                        "resource_request_uri": "serviceList.html",
                                        "resource_image_uri": "fa-bars",
                                        "priority": 0,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1527015329000,
                                        "update_time": 1527023786000,
                                        "isPower": "0",
                                        "children": null,
                                        "state": null
                                    },
                                    {
                                        "id": 120,
                                        "text": "文章管理",
                                        "resource_id": 120,
                                        "parent_id": 56,
                                        "parent_path": "0/1/56/",
                                        "permissions_code": "",
                                        "resource_name": "文章管理",
                                        "resource_type": "menu",
                                        "resource_request_uri": "",
                                        "resource_image_uri": "",
                                        "priority": 0,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1527015910000,
                                        "update_time": 1527016375000,
                                        "isPower": "0",
                                        "children": [
                                            {
                                                "id": 121,
                                                "text": "文章列表",
                                                "resource_id": 121,
                                                "parent_id": 120,
                                                "parent_path": "0/1/56/120/",
                                                "permissions_code": "article",
                                                "resource_name": "文章列表",
                                                "resource_type": "menu",
                                                "resource_request_uri": "article.html",
                                                "resource_image_uri": "fa-file-text ",
                                                "priority": 0,
                                                "is_delete": 0,
                                                "description": "",
                                                "create_time": 1527015930000,
                                                "update_time": 1527015980000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            },
                                            {
                                                "id": 122,
                                                "text": "文章分类",
                                                "resource_id": 122,
                                                "parent_id": 120,
                                                "parent_path": "0/1/56/120/",
                                                "permissions_code": "articleType",
                                                "resource_name": "文章分类",
                                                "resource_type": "menu",
                                                "resource_request_uri": "articleType.html",
                                                "resource_image_uri": "fa-book",
                                                "priority": 1,
                                                "is_delete": 0,
                                                "description": "",
                                                "create_time": 1527015941000,
                                                "update_time": 1527016000000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            }
                                        ],
                                        "state": null
                                    },
                                    {
                                        "id": 5,
                                        "text": "机场列表",
                                        "resource_id": 5,
                                        "parent_id": 56,
                                        "parent_path": "0/1/56/",
                                        "permissions_code": "airport",
                                        "resource_name": "机场列表",
                                        "resource_type": "menu",
                                        "resource_request_uri": "airport.html",
                                        "resource_image_uri": "fa-fighter-jet",
                                        "priority": 0,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1506637769000,
                                        "update_time": 1527024048000,
                                        "isPower": "0",
                                        "children": null,
                                        "state": null
                                    },
                                    {
                                        "id": 138,
                                        "text": "商品设置",
                                        "resource_id": 138,
                                        "parent_id": 56,
                                        "parent_path": "0/1/56/",
                                        "permissions_code": "",
                                        "resource_name": "商品设置",
                                        "resource_type": "menu",
                                        "resource_request_uri": "",
                                        "resource_image_uri": "",
                                        "priority": 1,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1527024015000,
                                        "update_time": 1527030846000,
                                        "isPower": "0",
                                        "children": [
                                            {
                                                "id": 106,
                                                "text": "商品分类",
                                                "resource_id": 106,
                                                "parent_id": 138,
                                                "parent_path": "0/1/56/138/",
                                                "permissions_code": "goodsMainCategory",
                                                "resource_name": "商品分类",
                                                "resource_type": "menu",
                                                "resource_request_uri": "goodsMainCategory.html",
                                                "resource_image_uri": "fa-list",
                                                "priority": 2005,
                                                "is_delete": 0,
                                                "description": "",
                                                "create_time": 1516913311000,
                                                "update_time": 1527024025000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            },
                                            {
                                                "id": 107,
                                                "text": "商品标签",
                                                "resource_id": 107,
                                                "parent_id": 138,
                                                "parent_path": "0/1/56/138/",
                                                "permissions_code": "goodsTab",
                                                "resource_name": "商品标签",
                                                "resource_type": "menu",
                                                "resource_request_uri": "goodsTab.html",
                                                "resource_image_uri": "fa-list",
                                                "priority": 2006,
                                                "is_delete": 0,
                                                "description": "",
                                                "create_time": 1516913370000,
                                                "update_time": 1527024028000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            }
                                        ],
                                        "state": null
                                    },
                                    {
                                        "id": 114,
                                        "text": "微信管理",
                                        "resource_id": 114,
                                        "parent_id": 56,
                                        "parent_path": "0/1/56/",
                                        "permissions_code": "",
                                        "resource_name": "微信管理",
                                        "resource_type": "menu",
                                        "resource_request_uri": "wechatConfig.html",
                                        "resource_image_uri": "fa-tasks",
                                        "priority": 3,
                                        "is_delete": 0,
                                        "description": "wechatConfig.html",
                                        "create_time": 1524928202000,
                                        "update_time": 1527024096000,
                                        "isPower": "0",
                                        "children": null,
                                        "state": null
                                    },
                                    {
                                        "id": 8,
                                        "text": "专题管理",
                                        "resource_id": 8,
                                        "parent_id": 56,
                                        "parent_path": "0/1/56/",
                                        "permissions_code": "topic",
                                        "resource_name": "专题管理",
                                        "resource_type": "menu",
                                        "resource_request_uri": "topic.html",
                                        "resource_image_uri": "fa-server",
                                        "priority": 6000,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1506637769000,
                                        "update_time": 1525469597000,
                                        "isPower": "0",
                                        "children": null,
                                        "state": null
                                    },
                                    {
                                        "id": 6,
                                        "text": "广告管理",
                                        "resource_id": 6,
                                        "parent_id": 56,
                                        "parent_path": "0/1/56/",
                                        "permissions_code": "adviertisement",
                                        "resource_name": "广告管理",
                                        "resource_type": "menu",
                                        "resource_request_uri": "adviertisement.html",
                                        "resource_image_uri": "fa-send",
                                        "priority": 7000,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1506637769000,
                                        "update_time": 1525469594000,
                                        "isPower": "0",
                                        "children": null,
                                        "state": null
                                    },
                                    {
                                        "id": 142,
                                        "text": "积分规则",
                                        "resource_id": 142,
                                        "parent_id": 56,
                                        "parent_path": "0/1/56/",
                                        "permissions_code": "integralRules",
                                        "resource_name": "积分规则",
                                        "resource_type": "menu",
                                        "resource_request_uri": "integralRules.html",
                                        "resource_image_uri": "fa-bars",
                                        "priority": 8000,
                                        "is_delete": 0,
                                        "description": "integralRules",
                                        "create_time": 1532116941000,
                                        "update_time": 1532116981000,
                                        "isPower": "0",
                                        "children": null,
                                        "state": null
                                    }
                                ],
                                "state": null
                            },
                            {
                                "id": 10,
                                "text": "会员管理",
                                "resource_id": 10,
                                "parent_id": 1,
                                "parent_path": "0/1/",
                                "permissions_code": "",
                                "resource_name": "会员管理",
                                "resource_type": "menu",
                                "resource_request_uri": "",
                                "resource_image_uri": "fa-user",
                                "priority": 7000,
                                "is_delete": 0,
                                "description": "",
                                "create_time": 1506637769000,
                                "update_time": 1513369619000,
                                "isPower": "0",
                                "children": [
                                    {
                                        "id": 73,
                                        "text": "会员列表",
                                        "resource_id": 73,
                                        "parent_id": 10,
                                        "parent_path": "0/1/10/",
                                        "permissions_code": "",
                                        "resource_name": "会员列表",
                                        "resource_type": "menu",
                                        "resource_request_uri": "member.html",
                                        "resource_image_uri": "fa-users",
                                        "priority": 7001,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1512769641000,
                                        "update_time": 1513369625000,
                                        "isPower": "0",
                                        "children": null,
                                        "state": null
                                    },
                                    {
                                        "id": 108,
                                        "text": "会员标签",
                                        "resource_id": 108,
                                        "parent_id": 10,
                                        "parent_path": "0/1/10/",
                                        "permissions_code": "memberTag",
                                        "resource_name": "会员标签",
                                        "resource_type": "menu",
                                        "resource_request_uri": "memberTag.html",
                                        "resource_image_uri": "fa-list",
                                        "priority": 7002,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1517503441000,
                                        "update_time": 1517503480000,
                                        "isPower": "0",
                                        "children": null,
                                        "state": null
                                    },
                                    {
                                        "id": 111,
                                        "text": "会员营销",
                                        "resource_id": 111,
                                        "parent_id": 10,
                                        "parent_path": "0/1/10/",
                                        "permissions_code": "memberMarketing",
                                        "resource_name": "会员营销",
                                        "resource_type": "menu",
                                        "resource_request_uri": "",
                                        "resource_image_uri": "fa-list",
                                        "priority": 7003,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1523891841000,
                                        "update_time": 1531150925000,
                                        "isPower": "0",
                                        "children": [
                                            {
                                                "id": 140,
                                                "text": "短信营销",
                                                "resource_id": 140,
                                                "parent_id": 111,
                                                "parent_path": "0/1/10/111/",
                                                "permissions_code": "memberMarketing",
                                                "resource_name": "短信营销",
                                                "resource_type": "menu",
                                                "resource_request_uri": "memberMarketing.html",
                                                "resource_image_uri": "fa-list",
                                                "priority": 0,
                                                "is_delete": 0,
                                                "description": "短信营销",
                                                "create_time": 1531150928000,
                                                "update_time": 1531150953000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            },
                                            {
                                                "id": 141,
                                                "text": "派发优惠券",
                                                "resource_id": 141,
                                                "parent_id": 111,
                                                "parent_path": "0/1/10/111/",
                                                "permissions_code": "distributeCoupon",
                                                "resource_name": "派发优惠券",
                                                "resource_type": "menu",
                                                "resource_request_uri": "distributeCoupon.html",
                                                "resource_image_uri": "fa-list",
                                                "priority": 1,
                                                "is_delete": 0,
                                                "description": "派发优惠券",
                                                "create_time": 1531150970000,
                                                "update_time": 1531151009000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            },
                                            {
                                                "id": 143,
                                                "text": "微信营销",
                                                "resource_id": 143,
                                                "parent_id": 111,
                                                "parent_path": "0/1/10/111/",
                                                "permissions_code": "wechatMarketing",
                                                "resource_name": "微信营销",
                                                "resource_type": "menu",
                                                "resource_request_uri": "wechatMarketing.html",
                                                "resource_image_uri": "fa-list",
                                                "priority": 2,
                                                "is_delete": 0,
                                                "description": "wechatMarketing",
                                                "create_time": 1532117089000,
                                                "update_time": 1532117125000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            }
                                        ],
                                        "state": null
                                    }
                                ],
                                "state": null
                            },
                            {
                                "id": 91,
                                "text": "数据中心",
                                "resource_id": 91,
                                "parent_id": 1,
                                "parent_path": "0/1/",
                                "permissions_code": "report",
                                "resource_name": "数据中心",
                                "resource_type": "menu",
                                "resource_request_uri": "",
                                "resource_image_uri": "fa-file-text",
                                "priority": 7500,
                                "is_delete": 0,
                                "description": "报表管理",
                                "create_time": 1515116421000,
                                "update_time": 1527031310000,
                                "isPower": "0",
                                "children": [
                                    {
                                        "id": 94,
                                        "text": "交易分析",
                                        "resource_id": 94,
                                        "parent_id": 91,
                                        "parent_path": "0/1/91/",
                                        "permissions_code": "",
                                        "resource_name": "交易分析",
                                        "resource_type": "menu",
                                        "resource_request_uri": "",
                                        "resource_image_uri": "fa-bar-chart",
                                        "priority": 0,
                                        "is_delete": 0,
                                        "description": "订单报表",
                                        "create_time": 1515116906000,
                                        "update_time": 1527031317000,
                                        "isPower": "0",
                                        "children": [
                                            {
                                                "id": 95,
                                                "text": "商家销售报表",
                                                "resource_id": 95,
                                                "parent_id": 94,
                                                "parent_path": "0/1/91/94/",
                                                "permissions_code": "",
                                                "resource_name": "商家销售报表",
                                                "resource_type": "menu",
                                                "resource_request_uri": "bussinessSalesReport.html",
                                                "resource_image_uri": "fa-bar-chart",
                                                "priority": 0,
                                                "is_delete": 0,
                                                "description": "",
                                                "create_time": 1515116952000,
                                                "update_time": 1515116975000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            },
                                            {
                                                "id": 96,
                                                "text": "新用户下单报表",
                                                "resource_id": 96,
                                                "parent_id": 94,
                                                "parent_path": "0/1/91/94/",
                                                "permissions_code": "",
                                                "resource_name": "新用户下单报表",
                                                "resource_type": "menu",
                                                "resource_request_uri": "newUserOrderReport.html",
                                                "resource_image_uri": "fa-bar-chart",
                                                "priority": 0,
                                                "is_delete": 0,
                                                "description": "",
                                                "create_time": 1515116987000,
                                                "update_time": 1515117011000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            }
                                        ],
                                        "state": null
                                    },
                                    {
                                        "id": 97,
                                        "text": "用户分析",
                                        "resource_id": 97,
                                        "parent_id": 91,
                                        "parent_path": "0/1/91/",
                                        "permissions_code": "userReport",
                                        "resource_name": "用户分析",
                                        "resource_type": "menu",
                                        "resource_request_uri": "",
                                        "resource_image_uri": "fa-bar-chart",
                                        "priority": 0,
                                        "is_delete": 0,
                                        "description": "用户报表",
                                        "create_time": 1515117033000,
                                        "update_time": 1527031205000,
                                        "isPower": "0",
                                        "children": [
                                            {
                                                "id": 98,
                                                "text": "活跃用户报表",
                                                "resource_id": 98,
                                                "parent_id": 97,
                                                "parent_path": "0/1/91/97/",
                                                "permissions_code": "",
                                                "resource_name": "活跃用户报表",
                                                "resource_type": "menu",
                                                "resource_request_uri": "ActiveUserReport.html",
                                                "resource_image_uri": "fa-bar-chart",
                                                "priority": 0,
                                                "is_delete": 0,
                                                "description": "",
                                                "create_time": 1515117072000,
                                                "update_time": 1515117103000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            },
                                            {
                                                "id": 99,
                                                "text": "用户首次扫码报表",
                                                "resource_id": 99,
                                                "parent_id": 97,
                                                "parent_path": "0/1/91/97/",
                                                "permissions_code": "",
                                                "resource_name": "用户首次扫码报表",
                                                "resource_type": "menu",
                                                "resource_request_uri": "NewUserFromQrcode.html",
                                                "resource_image_uri": "fa-bar-chart",
                                                "priority": 0,
                                                "is_delete": 0,
                                                "description": "",
                                                "create_time": 1515117126000,
                                                "update_time": 1515117152000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            }
                                        ],
                                        "state": null
                                    },
                                    {
                                        "id": 92,
                                        "text": "活动分析",
                                        "resource_id": 92,
                                        "parent_id": 91,
                                        "parent_path": "0/1/91/",
                                        "permissions_code": "",
                                        "resource_name": "活动分析",
                                        "resource_type": "menu",
                                        "resource_request_uri": "",
                                        "resource_image_uri": "fa-bar-chart",
                                        "priority": 0,
                                        "is_delete": 0,
                                        "description": "活动报表",
                                        "create_time": 1515116456000,
                                        "update_time": 1527031196000,
                                        "isPower": "0",
                                        "children": [
                                            {
                                                "id": 93,
                                                "text": "用户与订单",
                                                "resource_id": 93,
                                                "parent_id": 92,
                                                "parent_path": "0/1/91/92/",
                                                "permissions_code": "activityReport",
                                                "resource_name": "用户与订单",
                                                "resource_type": "menu",
                                                "resource_request_uri": "activityReport.html",
                                                "resource_image_uri": "fa-bar-chart",
                                                "priority": 0,
                                                "is_delete": 0,
                                                "description": "用户与订单",
                                                "create_time": 1515116748000,
                                                "update_time": 1515116783000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            },
                                            {
                                                "id": 115,
                                                "text": "抽奖活动报表",
                                                "resource_id": 115,
                                                "parent_id": 92,
                                                "parent_path": "0/1/91/92/",
                                                "permissions_code": "lotteryReport",
                                                "resource_name": "抽奖活动报表",
                                                "resource_type": "menu",
                                                "resource_request_uri": "lotteryReport.html",
                                                "resource_image_uri": "fa-bar-chart",
                                                "priority": 1,
                                                "is_delete": 0,
                                                "description": "抽奖活动报表",
                                                "create_time": 1525792168000,
                                                "update_time": 1525792207000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            }
                                        ],
                                        "state": null
                                    },
                                    {
                                        "id": 100,
                                        "text": "商品分析",
                                        "resource_id": 100,
                                        "parent_id": 91,
                                        "parent_path": "0/1/91/",
                                        "permissions_code": "",
                                        "resource_name": "商品分析",
                                        "resource_type": "menu",
                                        "resource_request_uri": "",
                                        "resource_image_uri": "fa-bar-chart",
                                        "priority": 0,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1515117179000,
                                        "update_time": 1527031211000,
                                        "isPower": "0",
                                        "children": [
                                            {
                                                "id": 101,
                                                "text": "店铺spu&amp;sku报表",
                                                "resource_id": 101,
                                                "parent_id": 100,
                                                "parent_path": "0/1/91/100/",
                                                "permissions_code": "",
                                                "resource_name": "店铺spu&amp;sku报表",
                                                "resource_type": "menu",
                                                "resource_request_uri": "goodsBussinessSkuReport.html",
                                                "resource_image_uri": "fa-bar-chart",
                                                "priority": 0,
                                                "is_delete": 0,
                                                "description": "",
                                                "create_time": 1515117245000,
                                                "update_time": 1515117269000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            },
                                            {
                                                "id": 102,
                                                "text": "全部商品报表",
                                                "resource_id": 102,
                                                "parent_id": 100,
                                                "parent_path": "0/1/91/100/",
                                                "permissions_code": "",
                                                "resource_name": "全部商品报表",
                                                "resource_type": "menu",
                                                "resource_request_uri": "goodsAllReport.html",
                                                "resource_image_uri": "fa-bar-chart",
                                                "priority": 0,
                                                "is_delete": 0,
                                                "description": "",
                                                "create_time": 1515117280000,
                                                "update_time": 1515117322000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            },
                                            {
                                                "id": 103,
                                                "text": "热销商品报表",
                                                "resource_id": 103,
                                                "parent_id": 100,
                                                "parent_path": "0/1/91/100/",
                                                "permissions_code": "",
                                                "resource_name": "热销商品报表",
                                                "resource_type": "menu",
                                                "resource_request_uri": "goodsHotReport.html",
                                                "resource_image_uri": "fa-bar-chart",
                                                "priority": 0,
                                                "is_delete": 0,
                                                "description": "",
                                                "create_time": 1515117353000,
                                                "update_time": 1515117380000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            }
                                        ],
                                        "state": null
                                    },
                                    {
                                        "id": 104,
                                        "text": "二维码分析",
                                        "resource_id": 104,
                                        "parent_id": 91,
                                        "parent_path": "0/1/91/",
                                        "permissions_code": "",
                                        "resource_name": "二维码分析",
                                        "resource_type": "menu",
                                        "resource_request_uri": "",
                                        "resource_image_uri": "fa-bar-chart",
                                        "priority": 1,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1515117397000,
                                        "update_time": 1527031223000,
                                        "isPower": "0",
                                        "children": [
                                            {
                                                "id": 105,
                                                "text": "二维码扫码报表",
                                                "resource_id": 105,
                                                "parent_id": 104,
                                                "parent_path": "0/1/91/104/",
                                                "permissions_code": "",
                                                "resource_name": "二维码扫码报表",
                                                "resource_type": "menu",
                                                "resource_request_uri": "ercodeReport.html",
                                                "resource_image_uri": "fa-bar-chart",
                                                "priority": 0,
                                                "is_delete": 0,
                                                "description": "",
                                                "create_time": 1515117427000,
                                                "update_time": 1515117457000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            }
                                        ],
                                        "state": null
                                    },
                                    {
                                        "id": 112,
                                        "text": "流量分析",
                                        "resource_id": 112,
                                        "parent_id": 91,
                                        "parent_path": "0/1/91/",
                                        "permissions_code": "",
                                        "resource_name": "流量分析",
                                        "resource_type": "menu",
                                        "resource_request_uri": "",
                                        "resource_image_uri": "fa-bar-chart",
                                        "priority": 7600,
                                        "is_delete": 0,
                                        "description": "流量报表",
                                        "create_time": 1524157464000,
                                        "update_time": 1527031326000,
                                        "isPower": "0",
                                        "children": [
                                            {
                                                "id": 113,
                                                "text": "流量报表",
                                                "resource_id": 113,
                                                "parent_id": 112,
                                                "parent_path": "0/1/91/112/",
                                                "permissions_code": "",
                                                "resource_name": "流量报表",
                                                "resource_type": "menu",
                                                "resource_request_uri": "flowReport.html",
                                                "resource_image_uri": "",
                                                "priority": 0,
                                                "is_delete": 0,
                                                "description": "流量报表",
                                                "create_time": 1524157515000,
                                                "update_time": 1524157561000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            }
                                        ],
                                        "state": null
                                    }
                                ],
                                "state": null
                            },
                            {
                                "id": 11,
                                "text": "系统设置",
                                "resource_id": 11,
                                "parent_id": 1,
                                "parent_path": "0/1/",
                                "permissions_code": "expand_setting",
                                "resource_name": "系统设置",
                                "resource_type": "menu",
                                "resource_request_uri": "",
                                "resource_image_uri": "fa-cog",
                                "priority": 8000,
                                "is_delete": 0,
                                "description": "",
                                "create_time": 1506637769000,
                                "update_time": 1512769566000,
                                "isPower": "0",
                                "children": [
                                    {
                                        "id": 31,
                                        "text": "用户管理",
                                        "resource_id": 31,
                                        "parent_id": 11,
                                        "parent_path": "0/1/11/",
                                        "permissions_code": "user",
                                        "resource_name": "用户管理",
                                        "resource_type": "menu",
                                        "resource_request_uri": "http://upms.jites.com.cn/account/users.html",
                                        "resource_image_uri": "fa-user",
                                        "priority": 10001,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1506637769000,
                                        "update_time": 1513371873000,
                                        "isPower": "0",
                                        "children": null,
                                        "state": null
                                    },
                                    {
                                        "id": 33,
                                        "text": "组织管理",
                                        "resource_id": 33,
                                        "parent_id": 11,
                                        "parent_path": "0/1/11/",
                                        "permissions_code": "expand_organization",
                                        "resource_name": "组织管理",
                                        "resource_type": "menu",
                                        "resource_request_uri": "",
                                        "resource_image_uri": "fa-object-group",
                                        "priority": 10002,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1506637769000,
                                        "update_time": 1513369731000,
                                        "isPower": "0",
                                        "children": [
                                            {
                                                "id": 46,
                                                "text": "组织机场管理",
                                                "resource_id": 46,
                                                "parent_id": 33,
                                                "parent_path": "0/1/11/33/",
                                                "permissions_code": "organizations1",
                                                "resource_name": "组织机场管理",
                                                "resource_type": "menu",
                                                "resource_request_uri": "http://upms.jites.com.cn/account/organizations1.html",
                                                "resource_image_uri": "fa-plane",
                                                "priority": 0,
                                                "is_delete": 0,
                                                "description": "组织机场管理",
                                                "create_time": 1509402273000,
                                                "update_time": 1515193444000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            },
                                            {
                                                "id": 50,
                                                "text": "组织店铺管理",
                                                "resource_id": 50,
                                                "parent_id": 33,
                                                "parent_path": "0/1/11/33/",
                                                "permissions_code": "organizations2",
                                                "resource_name": "组织店铺管理",
                                                "resource_type": "menu",
                                                "resource_request_uri": "http://upms.jites.com.cn/account/organizations2.html",
                                                "resource_image_uri": "fa-bars",
                                                "priority": 0,
                                                "is_delete": 0,
                                                "description": "组织店铺管理",
                                                "create_time": 1510013753000,
                                                "update_time": 1515193575000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            },
                                            {
                                                "id": 45,
                                                "text": "组织资源管理",
                                                "resource_id": 45,
                                                "parent_id": 33,
                                                "parent_path": "0/1/11/33/",
                                                "permissions_code": "organizations",
                                                "resource_name": "组织资源管理",
                                                "resource_type": "menu",
                                                "resource_request_uri": "http://upms.jites.com.cn/account/organizations.html",
                                                "resource_image_uri": "fa-bars",
                                                "priority": 0,
                                                "is_delete": 0,
                                                "description": "",
                                                "create_time": 1509402219000,
                                                "update_time": 1515193568000,
                                                "isPower": "0",
                                                "children": null,
                                                "state": null
                                            }
                                        ],
                                        "state": null
                                    },
                                    {
                                        "id": 32,
                                        "text": "角色管理",
                                        "resource_id": 32,
                                        "parent_id": 11,
                                        "parent_path": "0/1/11/",
                                        "permissions_code": "role",
                                        "resource_name": "角色管理",
                                        "resource_type": "menu",
                                        "resource_request_uri": "http://upms.jites.com.cn/account/roles.html",
                                        "resource_image_uri": "fa-user",
                                        "priority": 10003,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1506637769000,
                                        "update_time": 1515193602000,
                                        "isPower": "0",
                                        "children": null,
                                        "state": null
                                    },
                                    {
                                        "id": 47,
                                        "text": "群组管理",
                                        "resource_id": 47,
                                        "parent_id": 11,
                                        "parent_path": "0/1/11/",
                                        "permissions_code": "groups",
                                        "resource_name": "群组管理",
                                        "resource_type": "menu",
                                        "resource_request_uri": "http://upms.jites.com.cn/account/groups.html",
                                        "resource_image_uri": "fa-user-plus",
                                        "priority": 10004,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1509569926000,
                                        "update_time": 1513372836000,
                                        "isPower": "0",
                                        "children": null,
                                        "state": null
                                    },
                                    {
                                        "id": 34,
                                        "text": "资源管理",
                                        "resource_id": 34,
                                        "parent_id": 11,
                                        "parent_path": "0/1/11/",
                                        "permissions_code": "resources",
                                        "resource_name": "资源管理",
                                        "resource_type": "menu",
                                        "resource_request_uri": "http://upms.jites.com.cn/account/resources.html",
                                        "resource_image_uri": "fa-gear ",
                                        "priority": 10005,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1506637769000,
                                        "update_time": 1515193859000,
                                        "isPower": "0",
                                        "children": null,
                                        "state": null
                                    },
                                    {
                                        "id": 35,
                                        "text": "应用管理",
                                        "resource_id": 35,
                                        "parent_id": 11,
                                        "parent_path": "0/1/11/",
                                        "permissions_code": "apps",
                                        "resource_name": "应用管理",
                                        "resource_type": "menu",
                                        "resource_request_uri": "http://upms.jites.com.cn/account/apps.html",
                                        "resource_image_uri": "fa-gear ",
                                        "priority": 10006,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1506637769000,
                                        "update_time": 1515193958000,
                                        "isPower": "0",
                                        "children": null,
                                        "state": null
                                    },
                                    {
                                        "id": 36,
                                        "text": "会话管理",
                                        "resource_id": 36,
                                        "parent_id": 11,
                                        "parent_path": "0/1/11/",
                                        "permissions_code": "sessionss",
                                        "resource_name": "会话管理",
                                        "resource_type": "menu",
                                        "resource_request_uri": "http://upms.jites.com.cn/account/sessionss.html",
                                        "resource_image_uri": "fa-gear ",
                                        "priority": 10007,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1506637769000,
                                        "update_time": 1515193964000,
                                        "isPower": "0",
                                        "children": null,
                                        "state": null
                                    }
                                ],
                                "state": null
                            },
                            {
                                "id": 74,
                                "text": "运维中心",
                                "resource_id": 74,
                                "parent_id": 1,
                                "parent_path": "0/1/",
                                "permissions_code": "",
                                "resource_name": "运维中心",
                                "resource_type": "menu",
                                "resource_request_uri": "",
                                "resource_image_uri": "fa-suitcase",
                                "priority": 9000,
                                "is_delete": 0,
                                "description": "",
                                "create_time": 1512777876000,
                                "update_time": 1525469438000,
                                "isPower": "0",
                                "children": [
                                    {
                                        "id": 75,
                                        "text": "Kibana",
                                        "resource_id": 75,
                                        "parent_id": 74,
                                        "parent_path": "0/1/74/",
                                        "permissions_code": "",
                                        "resource_name": "Kibana",
                                        "resource_type": "menu",
                                        "resource_request_uri": "http://116.62.155.187:5601",
                                        "resource_image_uri": "fa-line-chart",
                                        "priority": 9001,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1512777933000,
                                        "update_time": 1525471384000,
                                        "isPower": "0",
                                        "children": null,
                                        "state": null
                                    },
                                    {
                                        "id": 76,
                                        "text": "Kafka",
                                        "resource_id": 76,
                                        "parent_id": 74,
                                        "parent_path": "0/1/74/",
                                        "permissions_code": "",
                                        "resource_name": "Kafka",
                                        "resource_type": "menu",
                                        "resource_request_uri": "http://116.62.155.187:9000",
                                        "resource_image_uri": "fa-line-chart",
                                        "priority": 9002,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1512780480000,
                                        "update_time": 1525471461000,
                                        "isPower": "0",
                                        "children": null,
                                        "state": null
                                    },
                                    {
                                        "id": 77,
                                        "text": "RabbitMQ",
                                        "resource_id": 77,
                                        "parent_id": 74,
                                        "parent_path": "0/1/74/",
                                        "permissions_code": "",
                                        "resource_name": "RabbitMQ",
                                        "resource_type": "menu",
                                        "resource_request_uri": "http://rmq.jites.com.cn:15672/",
                                        "resource_image_uri": "fa-line-chart",
                                        "priority": 9003,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1512780616000,
                                        "update_time": 1525471489000,
                                        "isPower": "0",
                                        "children": null,
                                        "state": null
                                    },
                                    {
                                        "id": 109,
                                        "text": "DubboAdmin",
                                        "resource_id": 109,
                                        "parent_id": 74,
                                        "parent_path": "0/1/74/",
                                        "permissions_code": "",
                                        "resource_name": "DubboAdmin",
                                        "resource_type": "menu",
                                        "resource_request_uri": "http://www.jites.com.cn/dubbo-admin",
                                        "resource_image_uri": "fa-line-chart",
                                        "priority": 9004,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1523575155000,
                                        "update_time": 1537472489000,
                                        "isPower": "0",
                                        "children": null,
                                        "state": null
                                    },
                                    {
                                        "id": 110,
                                        "text": "DubboMonitor",
                                        "resource_id": 110,
                                        "parent_id": 74,
                                        "parent_path": "0/1/74/",
                                        "permissions_code": "",
                                        "resource_name": "DubboMonitor",
                                        "resource_type": "menu",
                                        "resource_request_uri": "http://www.jites.com.cn/dubbo-monitor",
                                        "resource_image_uri": "fa-line-chart",
                                        "priority": 9005,
                                        "is_delete": 0,
                                        "description": "",
                                        "create_time": 1523575235000,
                                        "update_time": 1537472496000,
                                        "isPower": "0",
                                        "children": null,
                                        "state": null
                                    }
                                ],
                                "state": null
                            }
                        ],
                        "state": null
                    }
                ]
            },
            "totalCount": 0
        }
    </script>
</body>

</html>